<?php 

class jiaoshiView extends GetLoad
{
	
	public function jianliview($data){
		$this->load("Controller/user");
		$daohang =new ControllerName();
		$daohang->Getname(0);
?>
   
    	<div style="margin-left:auto; margin-right:auto;" class="container" >    
        
        	<div class="container col-sm-8"  >
            	
                <a href= <?php echo $data['url2'] ?> class="btn btn-info btn-lg">
                  <span class="glyphicon glyphicon-plus"></span> 
                </a>

                <table class="table">
                    <caption><?php echo $data['mingcheng']?></caption>
                   <thead>
                      <tr>
                         <th>名称</th>
                         <th>编辑</th>
                         <th>删除</th>
                      </tr>
                   </thead>
                   <tbody>
                    <?php foreach ($data['xiangmu'] as $shiyanshi) { ?>

                      <tr>
                         <td><a <?php echo "href='".$shiyanshi['url']."'" ?> ><?php echo $shiyanshi['name']?> </a></td>
                         <td><a href=<?php if(isset($shiyanshi['xiugai'])){echo $shiyanshi['xiugai'];} ?>  ><span class="glyphicon glyphicon-pencil"></span></a></td>
                         <td><a  href=<?php if(isset($shiyanshi['shanchu'])){echo $shiyanshi['shanchu'];} ?>><span class="glyphicon glyphicon-trash"></span></a></td>
                      </tr>
                      <?php } ?>
                      
                   </tbody>
                </table>



				
            </div>
           
        
            <div>
                <a href= "./index.php?route=Controller/jiaoshi/ControllerJiaoshi/shiyanbaogao"  class="btn btn-info btn-lg">
                  <span class="glyphicon glyphicon-envelope"></span> 
                </a>
                <p>实验报告</p>
            </div>
       </div>
    </div>

    
</body>
</html>
<?php 

  }
}

?>